/** 
 * Date: 2004-4-4
 * Time: 23:12:45
 */

package org.cnmarc4j;

import org.cnmarc4j.cnmarc.Leader;

public class DefaultHandler implements MarcHandler {
    public void startCollection() {
    }

    public void endCollection() {
    }

    public void startRecord(Leader leader) {
    }

    public void endRecord() {
    }

    public void controlField(String tag, char[] data) {
        String value = new String(data);
        System.out.println("\ntag:" + tag + "  data:" + value);
    }

    public void startDataField(String tag, char ind1, char ind2) {
        System.out.println("\ntag:" + tag
                + "  ind1:" + ind1
                + "  ind2:" + ind2);
    }

    public void endDataField(String tag) {
        System.out.println("\n");
    }

    public void subfield(char code, char[] data) {
        String value = new String(data);
        System.out.println("code:" + code + "  data:" + value);
    }
}
